Skip to content

Conversation

Copy link

Copilot AI commented Jan 9, 2026

What was the end-user or developer problem that led to this PR?

The test_initialize method in test_gem_config_file.rb did not explicitly verify the default value of install_extension_in_lib when no configuration is provided. This left a gap in test coverage for the new DEFAULT_INSTALL_EXTENSION_IN_LIB = false constant introduced in PR #9240.

What is your fix for the problem, implemented in this PR?

Added assert_equal false, @cfg.install_extension_in_lib in the first section of test_initialize (line 46), which tests default values before any config file overrides are applied. This mirrors the existing assertions for other default config values like ipv4_fallback_enabled.

The assertion validates that the config object correctly initializes with install_extension_in_lib set to false when no .gemrc configuration specifies otherwise.

Make sure the following tasks are checked


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Jan 9, 2026
Copilot AI changed the title [WIP] Address feedback on DEFAULT_INSTALL_EXTENSION_IN_LIB change Add test assertion for install_extension_in_lib default value Jan 9, 2026
Copilot AI requested a review from hsbt January 9, 2026 04:06
@hsbt hsbt marked this pull request as ready for review January 9, 2026 04:07
Copilot AI review requested due to automatic review settings January 9, 2026 04:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a test assertion to verify that the install_extension_in_lib configuration property defaults to false when no configuration file specifies a value. This improves test coverage for the DEFAULT_INSTALL_EXTENSION_IN_LIB constant that was introduced in PR #9240.

  • Added assertion to verify default value of install_extension_in_lib is false

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hsbt hsbt merged commit 8eaf071 into disable-to-install-extension-lib Jan 9, 2026
91 checks passed
@hsbt hsbt deleted the copilot/sub-pr-9240 branch January 9, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants